package com.dy.config;

import com.dy.hander.LoginHander;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @author dyinin
 */
@Configuration
public class MyLoginMvcConfig implements WebMvcConfigurer {
    @Autowired
    private LoginHander loginHander;
    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(loginHander).addPathPatterns("/home","/blogs","/blogsinput","/admintypesinput","/admintypes","/admintags");
    }
}
